﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CompanyRegister.aspx.cs"
    Inherits="iOak.Web.CompanyRegister" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>企业注册</title>
    <link type="text/css" href="Style/style.css" rel="stylesheet" />
    <link type="text/css" href="Style/list.css" rel="stylesheet" />
    <link type="text/css" href="Style/index.css" rel="stylesheet" />
    <link type="text/css" href="Style/Site.css" rel="stylesheet" />
    <link type="text/css" href="/Script/jqueryui/css/jquery-ui-1.8.16.css" rel="stylesheet" />
    <script type="text/javascript" src="/Script/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="/Script/jqueryui/js/jquery-ui-1.8.16.min.js"></script>
    <script type="text/javascript" src="/Script/jqueryui/js/jquery.ui.datepicker-zh-CN.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#dialog:ui-dialog").dialog("destroy");
            $("#dialog-message").dialog({
                modal: true,
                resizable: false,
                autoOpen: false,
                draggable: false,
                buttons: [
                {
                    text: "确定",
                    click: function () {
                        $(this).dialog("close");
                    }
                }
            ]
            });

            $('#<%=btnRegist.ClientID %>').bind('click', function () {
                var companyName = $.trim($('#<%=txtCompanyName.ClientID %>').val());
                var contactPerson = $.trim($('#<%=txtContactPerson.ClientID %>').val());
                var contactPhone = $.trim($('#<%=txtContactPhone.ClientID %>').val());
                var userName = $.trim($('#<%=txtUserName.ClientID %>').val());
                var password = $('#<%=txtPassword.ClientID %>').val();
                var rePassword = $('#<%=txtRePassword.ClientID %>').val();
                var msg = '请输入"{0}"!';
                var warnning = '';
                if (companyName == '') {
                    warnning = msg.replace('{0}', '公司名称');
                }
                else if (contactPerson == '') {
                    warnning = msg.replace('{0}', '联系人');
                }
                else if (contactPhone == '') {
                    warnning = msg.replace('{0}', '联系电话');
                }
                else if (userName == '') {
                    warnning = msg.replace('{0}', '用户名');
                }
                else if (password == '') {
                    warnning = msg.replace('{0}', '密码');
                }
                else if (password != rePassword) {
                    warnning = '两次输入的密码不同！';
                }
                if (warnning != '') {
                    jAlert(warnning);
                    return false;
                }
            });
        });

        function jAlert(msg) {
            $("#spMessage").text(msg);
            $("#dialog-message").dialog('open');
        }
    </script>
    <div id="dialog-message" title="提示">
        <table style="vertical-align: middle">
            <tr>
                <td style="width: 60px">
                    <img src="/images/dialog-info.gif" />
                </td>
                <td>
                    <p>
                        <span id="spMessage"></span>
                    </p>
                </td>
            </tr>
        </table>
    </div>
    <div>
        <div class="top-bg">
            <div class="top-yy">
                <div class="top">
                    <div style="height: 85px;">
                        <div class="top_title_l">
                            <img src="/images/top_name.jpg" width="319" height="52" /></div>
                    </div>
                </div>
            </div>
        </div>
        <div class="content">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="background-color: #fff;">
                <tr>
                    <td width="7" align="left" valign="top">
                        <img src="/images/tab-j_01.jpg" width="7" height="7" />
                    </td>
                    <td width="755">
                        &nbsp;
                    </td>
                    <td width="10" align="right" valign="top">
                        <img src="/images/tab-j_02.jpg" width="7" height="7" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <div style="border: 1px solid #ccc">
                            <div style="border: 1px solid #fff">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td>
                                            <div class="content-top">
                                                <div class="top_edit_bg">
                                                    企业注册</div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <div style="padding-top: 20px; background: #f9f9f9;">
                                                <table width="100%" border="0" cellspacing="10" cellpadding="0">
                                                    <tr>
                                                        <td colspan="2" align="left" style=" padding-left:10px; font-size: 16px; font-weight: bold">
                                                            公司信息：
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="editor-label" style="width: 18%">
                                                            公司名称
                                                        </td>
                                                        <td class="editor-field" style="width: 30%">
                                                            <asp:TextBox runat="server" ID="txtCompanyName" class="must" Width="280"></asp:TextBox>
                                                        </td>
                                                        <td class="editor-comment" style="width: 42%">
                                                            请按照企业营业执照上的公司名称进行注册；注册成功后公司名称将不能修改。
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="editor-label" valign="top">
                                                            联系人
                                                        </td>
                                                        <td class="editor-field">
                                                            <asp:TextBox runat="server" ID="txtContactPerson" class="must" Width="280"></asp:TextBox>
                                                        </td>
                                                        <td class="editor-comment">
                                                            请准确输入企业联系人，以方便与贵公司联系。
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="editor-label">
                                                            联系电话
                                                        </td>
                                                        <td class="editor-field">
                                                            <asp:TextBox runat="server" ID="txtContactPhone" class="must" Width="280"></asp:TextBox>
                                                        </td>
                                                        <td class="editor-comment">
                                                            例如：0510-58585858-6688
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" align="left" style="padding-left:10px;font-size: 16px; font-weight: bold">
                                                            用户信息：
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="editor-label">
                                                            用户名
                                                        </td>
                                                        <td class="editor-field">
                                                            <asp:TextBox runat="server" ID="txtUserName" class="must" Width="150px" MaxLength="20"></asp:TextBox>
                                                        </td>
                                                        <td class="editor-comment">
                                                            请输入英文字母、数字或下划线，长度为4到20个字符，不区分大小写。
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="editor-label">
                                                            密码
                                                        </td>
                                                        <td class="editor-field">
                                                            <asp:TextBox runat="server" ID="txtPassword" class="must" TextMode="Password" Width="150px" MaxLength="20"></asp:TextBox>
                                                        </td>
                                                        <td class="editor-comment">
                                                            请输入英文字母、数字或下划线，长度为4到20个字符，不区分大小写。
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td class="editor-label">
                                                            重复密码
                                                        </td>
                                                        <td class="editor-field">
                                                            <asp:TextBox runat="server" ID="txtRePassword" class="must" TextMode="Password" Width="150px" MaxLength="20"></asp:TextBox>
                                                        </td>
                                                        <td class="editor-comment">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <asp:Button runat="server" ID="btnRegist" Text="注册" OnClick="btnRegist_Click" CssClass="adminButtonBlue" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="left" valign="bottom">
                        <img src="/images/tab-j_03.jpg" width="7" height="7" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td align="right" valign="bottom">
                        <img src="/images/tab-j_04.jpg" width="7" height="7" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="clear">
        </div>
        <div class="in-copyright">
            无锡市新区人才工作办公室 版权所有</div>
    </div>
    </form>
</body>
</html>
